package com.rjjs.Xiaozhi.assistant;

import com.rjjs.Xiaozhi.Config.XiaozhiAgentConfig;
import com.rjjs.Xiaozhi.bean.PromptConfig;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;


import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;


@AiService(
        wiringMode = EXPLICIT,
        chatModel = "ollamaChatModel",
      chatMemoryProvider = "chatMemoryProvider",
        contentRetriever = "contentRetriever"
)
public interface XiaozhiAgent1 {

    @SystemMessage(fromResource = "PromptConfig")
    String chat(@MemoryId Long id,@UserMessage String UserMessage);

}
